﻿{extend name="public:base" /}

{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <div class="row search-form">
                        <div class="col-sm-2 m-b-sm">
                            <div class="input-group">
                                <select class="form-control form-control-lg" name="type">
                                    <option value="">请选择类型</option>
                                    <option value="share_register" {:input('type') === 'share_register' ? 'selected' : ''}>业务员拉新奖励</option>
                                    <option value="comment" {:input('type') === 'comment' ? 'selected' : ''}>供应商评分</option>
                                    <option value="admin_post" {:input('type') === 'admin_post' ? 'selected' : ''}>后台操作</option>
                                </select>
                            </div>
                        </div>

                        <div class="col-sm-2 m-b-sm">
                            <div class="input-group">
                                <button type="button" class="btn btn-primary btn-lg screen-btn">搜索</button>
                            </div>
                        </div>
                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>昵称</th>
                                <th>手机号</th>
                                <th>服务</th>
                                <th>类型</th>
                                <th>变更评分</th>
                                <th>变更前评分</th>
                                <th>变更后评分</th>
                                <th>备注</th>
                                <th>变更时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="list" id="vo"}
                            <tr>
                                <td>{$vo.id}</td>
                                <td>{$vo.username}</td>
                                <td>{$vo.mobile}</td>
                                <td>{$vo.service_name}</td>
                                <td>{$vo.type|doScoreTypeDesc}</td>
                                <td>{$vo.score}</td>
                                <td>{$vo.before}</td>
                                <td>{$vo.after}</td>
                                <td>{$vo.remark}</td>
                                <td>{:timeFormat($vo.create_time)}</td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                        {if !empty($list)}{$list->render()}{/if}
                    </div>

                </div>
            </div>
        </div>

    </div>
</div>

{/block}